package com.handinglian.ai.record.service;

import com.handinglian.ai.common.dto.CommonPage;
import com.handinglian.ai.record.dto.MessageDto;
import com.handinglian.ai.record.entity.MessageRecord;
import com.handinglian.ai.record.param.MessageParam;

import java.io.IOException;
import java.util.List;

public interface MessageRecordService {
    CommonPage<MessageDto> listPage(String nameOrPhone, String startDate, String endDate, Integer pageNum, Integer pageSize);

    MessageDto getDetail(Integer id);

//    int sendSingleMessage(MessageParam messageParam) throws IOException;

    int create(MessageRecord record);

    int sendMessage(MessageParam messageParam) throws IOException;
}
